package cn.com.shadowless.xinning.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import cn.com.shadowless.xinning.R;
import cn.com.shadowless.xinning.model.order.CommunicateOrderInfo;
import cn.com.shadowless.xinning.model.order.CostOrderInfo;

/**
 * The type Contract review adapter.
 *
 * @author sHadowLess
 */
public class CommunicateAdapter extends BaseQuickAdapter<CommunicateOrderInfo.DataBean.FileListDTO, BaseViewHolder> {


    /**
     * Instantiates a new Contract review adapter.
     *
     * @param layoutResId the layout res id
     * @param data        the data
     */
    public CommunicateAdapter(int layoutResId, @Nullable List<CommunicateOrderInfo.DataBean.FileListDTO> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, CommunicateOrderInfo.DataBean.FileListDTO item) {
        helper.setText(R.id.communicate_tv_item, item.getFileName());
        helper.addOnClickListener(R.id.communicate_item);
    }
}
